<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="/WEB-INF/jsps/include.jsp"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script type="text/javascript" src="<%=basePath%>js/jquery-1.9.1.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
	
	$("#submit").click(function(){
		var username = $.trim($("#username").val());
		var password =$.trim($("#password").val());
		if(username==''||password==''){
			alert("用户名或者密码不能为空");
			return false;
		}else{
			$(this).submit();
		}
	});
	
});

</script>
<title> </title>
<meta http-equiv=Content-Type content=text/html;charset=gb2312>
</head>
<body>
	<c:url var="action" value = "login.html" />
	<form action="${action }" method="post">
		<table>
			<tr>
				<td>用户名：</td>
				<td><input id = "username" name = "username" /></td>
			</tr>
			<tr>
				<td>密码：</td>
				<td><input id = "password" name = "password" type="password"/></td>
			</tr>
			<tr>
				<td><input id = "submit" type="submit" value="登录" /></td>
				<td><input type="reset" value = "重置" /></td>
			</tr>
			<tr>
				<label>${error } </label>
			</tr>
		</table>
	</form>
</body>
</html>